<?php
    $content = new Models_Articles();
    $article = $content->getArticle($id);
    $user = new Models_User();
    $userData = $user->getUserData($_COOKIE['user_id']);
?>
<div class="well">
    <form class="form-horizontal" action="/<?php $content->printPath(); ?>comment/adding" method="POST">
        <legend>Comment "<?php echo $article['title']; ?>:"</legend>
        <div class="control-group">
            <label class="control-label">Name:</label>
            <div class="controls">
               <span class="input-xlarge uneditable-input"><?php echo $userData['first_name'] . '  ' . $userData['second_name']; ?></span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Theme:</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name="title" value="">
            </div>
        </div>
        <div class="control-group">
            <textarea id="comment" class="span2" rows="1" name="comment"></textarea>
        </div>
        <input type="hidden" name="id" value="<?php echo $id; ?>">
        <div class="form-actions">
            <button class="btn btn-primary" type="submit">Add</button>
            <button class="btn" type="reset">Clear</button>
        </div>
    </form>
</div>
<script type="text/javascript">
    //<![CDATA[
            CKEDITOR.replace( 'comment',
                    {
                            fullPage : false,
                            toolbar : 'Basic'
                    });
    //]]>
</script>